import pymysql

# 创建连接
# 打开数据库连接
conn = pymysql.connect("localhost","root","123456","mysql" )
cursor = conn.cursor()
print(cursor.execute("select * from user"))
